/**
 * @author        yangmingchao <amustlang_yang@foxmail.com>
 * @date          2024-01-09 23:59:35
 * Copyright © YourCompanyName All rights reserved
 */
import request from '@/utils/request'

// 查询短剧演员列表
export function listPerformer(query) {
  return request({
    url: '/drama/performer/page',
    method: 'get',
    params: query
  })
}

// 查询短剧演员详细
export function getPerformer(id) {
  return request({
    url: '/drama/performer/' + id,
    method: 'get'
  })
}

// 新增短剧演员
export function addPerformer(data) {
  return request({
    url: '/drama/performer',
    method: 'post',
    data: data
  })
}

// 修改短剧演员
export function updatePerformer(data) {
  return request({
    url: '/drama/performer',
    method: 'put',
    data: data
  })
}

// 删除短剧演员
export function delPerformer(id) {
  return request({
    url: '/drama/performer/' + id,
    method: 'delete'
  })
}

// 复制演员
export function copyPerformer(data) {
  return request({
    url: '/drama/performer/copyPerformer',
    method: 'post',
    data: data
  })
}
